/**
 * Project Name:mbr-ws
 * File Name:AdminLoginReq.java
 * Package Name:com.aeye.mbr.ws.bean.login
 * Date:2015年8月15日上午10:45:36
 * Copyright (c) 2015, shengpeng@a-eye.cn All Rights Reserved.
 *
*/

package com.aeye.mbr.ws.api.pt;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import com.aeye.mbr.common.ui.validator.SafeString;
import com.aeye.mbr.ws.api.BaseReq;

/**
 * ClassName:OperatorLoginReq <br/>
 * Function: 经办人登录请求对象 <br/>
 * Date:     2015年8月15日 上午10:45:36 <br/>
 * @author   shengpeng
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public class OperatorLoginReq extends BaseReq{
	@SafeString(message="input.data.unsafe")
	private String userId;
	
	@NotEmpty(message="password.no.empty")
	@Length(max=32,message="password.toolong")
	private String password;
	
	@SafeString(message="input.data.unsafe")
	@Length(max=1,message="password.toolong")
	private String needPassword = "1";
	
	//登录类型1: 经办人登录,默认 2: 姓名身份证登录
	private String type;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getNeedPassword() {
		return needPassword;
	}
	public void setNeedPassword(String needPassword) {
		this.needPassword = needPassword;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
}

